<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('增加合同')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-notice-add">
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">合同名称：</label>
			<div class="col-sm-10">
				<input id="name" name="name" class="form-control" placeholder="合同名称" type="text" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">合同甲方：</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="press" placeholder="合同甲方" name="partA" required/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">合同乙方：</label>
			<div class="col-sm-10">
				<input id="partB" name="partB" class="form-control"  placeholder="合同乙方" type="text" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">合同签订日期：</label>
			<div class="col-sm-10">
				<input id="signDate" name="signDate" class="time-input"  placeholder="合同签订日期"type="text" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">甲方负责人：</label>
			<div class="col-sm-10">
				<input id="personA" name="personA" class="form-control"  placeholder="甲方负责人"type="text" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">乙方负责人：</label>
			<div class="col-sm-10">
				<input id="personB" name="personB" class="form-control"  placeholder="乙方负责人"type="text" required>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">合同金额：</label>
			<div class="col-sm-10">
				<input id="amount" name="amount" class="form-control"  placeholder="合同金额"type="number" required>
			</div>
		</div>
	</form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
    var prefix = ctx + "oa/contract";

    $("#form-notice-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
        }
    }
</script>
</body>
</html>
